/* Styles for the feedback page */

#feedback-sent {
    display: none; /* Will be displayed using JavaScript, see feedback.js */
}

.feedback form {
    max-width: 60rem;    
}

.feedback .comments {
    margin: 1rem 0;
}

.feedback label {
    display: block;
}

.feedback textarea {
    display: block;
    padding: .5rem;
    width: 100%;
    box-sizing: border-box;
}

.feedback button {
    padding: .5rem;
}

.feedback-question {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flexbox;
    
    /* Vertically align the child elements to the center */
    -ms-box-align: center;
    -webkit-box-align: center;
    box-align: center;
    

    padding: .5rem 0;
}

.feedback-question:nth-child(even) {
    background-color: #f5f4ff;
}

.feedback-question label {
    -ms-flex: 1;
    -webkit-box-flex: 1;
    box-flex: 1;
    display: block;
    padding-right: 1rem;
}

.star {
    background-image: url();
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: .1rem;
    
    -ms-box: 0;
    -webkit-box-flex: 0;
    box-flex: 0;
    
    -ms-transition: -ms-transform .5s;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
}

.star:hover,
.star.hover {
    background-position: 0 -15px;
    
    -ms-transform: scale(1.3, 1.3);
    -webkit-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3);
    
    -ms-transition: -ms-transform .5s;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
}

.star.selected {
    background-position: 0 -30px;
    
    -ms-transform: scale(1.3, 1.3);
    -webkit-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3);
}

@-ms-keyframes send /* Animations for sending feedback */ {
    0% {
        -ms-transform: scale(1);
    }
    50% {
        -ms-transform: scale(.8);
    }
    100% {
        -ms-transform: translate(0, -1000px);
    }
}

@-webkit-keyframes send /* Animations for sending feedback */ {
    0% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(.8);
    }
    100% {
        -webkit-transform: translate(0, -1000px);
    }
}

.sending {
    background-color: #EAEEFA;
    border: 1px solid #888;

    /* Animations for sending feedback */
    -ms-animation-name: send;
    -ms-animation-duration: 1s;
    -ms-animation-iteration-count: 1;
    -ms-animation-fill-mode: forwards;
    -webkit-animation-name: send;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;

    /* Drop shadow */
    -ms-box-shadow: 0px 3px 3px rgba(0,0,0,.8);
    -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,.8);
    box-shadow: 0px 3px 3px rgba(0,0,0,.8);
}
